<template>
	<view class="fail">
		<image src="/static/pay_failed.png" mode="widthFix"></image>
		<p>PAYMENT FAILED</p>
		<text>Please check your bank card balance</text>
		<button @click.stop="handleTrip">VIEW ORDER DETAILS</button>
	</view>
</template>

<script>
	import web from "@/utils/uni.webview.1.5.4.js"
	const webView = web.webView;
	export default {
		data() {
			return {

			}
		},
		methods: {
			handleTrip() {
				let message = {
					type: 'success',
					// url: "/pages/index/reserve/my-trip"
					url: "/pages/user/my-order/orders"
				};
				webView.postMessage(message);
			}
		}
	}
</script>
<style>
	.u-icon--right {
		justify-content: center;
	}
</style>
<style lang="scss" scoped>
	.fail {
		text-align: center;
		margin-top: 300rpx;

		image {
			width: 530rpx;
		}

		p {
			margin-top: 50rpx;
			font-family: Microsoft YaHei UI;
			font-weight: 400;
			font-size: 42rpx;
			color: #333333;
		}

		text {
			display: block;
			margin-top: 40rpx;
			font-size: 28rpx;
			color: #999999;
		}

		button {
			width: 630rpx;
			height: 90rpx;
			background: #4980F7;
			border-radius: 45rpx;
			font-size: 32rpx;
			color: #FEFEFE;
			line-height: 90rpx;
			text-align: center;
			margin-top: 70rpx;
		}
	}
</style>